<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../../../../../lagouedu/springboot-blog/src/main/resources/static/back/js/article.js"></script>
</head>
<script src="https://s3.pstatp.com/cdn/expire-1-M/jquery/3.2.1/jquery.min.js"></script>
<script>
    $(document).ready(function () {
        $("#button").click(function () {
            // alert("hello")
            $.post({
                url: "/delayPayment/orders",
                success: function (result) {
                    var storage = window.localStorage;
                    storage.setItem("id", result);
                    window.location.href = 'pay.html';
                }
            });
        });
    })

</script>
<body>
<button id="button">下单</button>
</body>
</html>